law of refraction proof